package com.one.group.service;

import com.mybatisflex.core.service.IService;
import com.one.group.model.dto.SpBuildingAddDto;
import com.one.group.model.dto.SpBuildingUpdateDto;
import com.one.group.model.entity.SpBuilding;

import java.util.List;

public interface SpBuildingService extends IService<SpBuilding> {

    /**
     * 根据小区id查询所有的楼栋
     * @param cellId
     * @return
     */
    List<SpBuilding> searchBuildingList(Long cellId);

    boolean createBuilding(SpBuildingAddDto spBuildingAddDto);

    boolean updateBuilding(SpBuildingUpdateDto spBuildingUpdateDto);

    boolean myRemoveById(Long id);
}
